package com.tpp.service.impl;

import com.tpp.dao.MovieCinemaDao;
import com.tpp.pojo.MovieCinemaSchedule;
import com.tpp.pojo.TppMovie;
import com.tpp.pojo.baseVo.BaseResult;
import com.tpp.service.MovieCinemaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MovieCinemaServiceImpl implements MovieCinemaService {

    @Autowired
    MovieCinemaDao movieCinemaDao;

    @Override
    public BaseResult findByMovieCinemaSchedule(Integer movieId, Integer cinemaId) {
        BaseResult baseResult =new BaseResult();
        List<MovieCinemaSchedule> byMovieCinemaSchedule = movieCinemaDao.findByMovieCinemaSchedule(movieId,cinemaId);
        baseResult.setData(byMovieCinemaSchedule);
        baseResult.setCode(1);
        baseResult.setMsg("获取场次");
        return baseResult;
    }
}
